package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_teach_ask")
@ApiModel(value="ve_teach_ask对象", description="问题表")
public class VeTeachAsk
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("教学课程ID")
    private Integer tcid;
    @ApiModelProperty("课程ID")
    private Integer courseid;
    @ApiModelProperty("章节ID")
    private Integer nodeid;
    @ApiModelProperty("问题内容")
    private String content;
    @ApiModelProperty("回复状态0未回复1已回复")
    private Integer isreply;
    @ApiModelProperty("回复数量")
    private Integer replycount;
    @ApiModelProperty("提问人ID,传0时为当前登录用户ID")
    private Integer userid;
    @ApiModelProperty("提问时间")
    private Integer createtime;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeTeachAsk setCourseid(Integer courseid)
    {
        this.courseid = courseid;return this;
    }

    public VeTeachAsk setTcid(Integer tcid)
    {
        this.tcid = tcid;return this;
    }

    public VeTeachAsk setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeTeachAsk(id=" + getId() + ", tcid=" + getTcid() + ", courseid=" + getCourseid() + ", nodeid=" + getNodeid() + ", content=" + getContent() + ", isreply=" + getIsreply() + ", replycount=" + getReplycount() + ", userid=" + getUserid() + ", createtime=" + getCreatetime() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeTeachAsk setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeTeachAsk setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeTeachAsk setCreatetime(Integer createtime)
    {
        this.createtime = createtime;return this;
    }

    public VeTeachAsk setUserid(Integer userid)
    {
        this.userid = userid;return this;
    }

    public VeTeachAsk setReplycount(Integer replycount)
    {
        this.replycount = replycount;return this;
    }

    public VeTeachAsk setIsreply(Integer isreply)
    {
        this.isreply = isreply;return this;
    }

    public VeTeachAsk setContent(String content)
    {
        this.content = content;return this;
    }

    public VeTeachAsk setNodeid(Integer nodeid)
    {
        this.nodeid = nodeid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $tcid = getTcid();result = result * 59 + ($tcid == null ? 43 : $tcid.hashCode());Object $courseid = getCourseid();result = result * 59 + ($courseid == null ? 43 : $courseid.hashCode());Object $nodeid = getNodeid();result = result * 59 + ($nodeid == null ? 43 : $nodeid.hashCode());Object $isreply = getIsreply();result = result * 59 + ($isreply == null ? 43 : $isreply.hashCode());Object $replycount = getReplycount();result = result * 59 + ($replycount == null ? 43 : $replycount.hashCode());Object $userid = getUserid();result = result * 59 + ($userid == null ? 43 : $userid.hashCode());Object $createtime = getCreatetime();result = result * 59 + ($createtime == null ? 43 : $createtime.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeTeachAsk;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeTeachAsk)) {
            return false;
        }
        VeTeachAsk other = (VeTeachAsk)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$tcid = getTcid();Object other$tcid = other.getTcid();
        if (this$tcid == null ? other$tcid != null : !this$tcid.equals(other$tcid)) {
            return false;
        }
        Object this$courseid = getCourseid();Object other$courseid = other.getCourseid();
        if (this$courseid == null ? other$courseid != null : !this$courseid.equals(other$courseid)) {
            return false;
        }
        Object this$nodeid = getNodeid();Object other$nodeid = other.getNodeid();
        if (this$nodeid == null ? other$nodeid != null : !this$nodeid.equals(other$nodeid)) {
            return false;
        }
        Object this$isreply = getIsreply();Object other$isreply = other.getIsreply();
        if (this$isreply == null ? other$isreply != null : !this$isreply.equals(other$isreply)) {
            return false;
        }
        Object this$replycount = getReplycount();Object other$replycount = other.getReplycount();
        if (this$replycount == null ? other$replycount != null : !this$replycount.equals(other$replycount)) {
            return false;
        }
        Object this$userid = getUserid();Object other$userid = other.getUserid();
        if (this$userid == null ? other$userid != null : !this$userid.equals(other$userid)) {
            return false;
        }
        Object this$createtime = getCreatetime();Object other$createtime = other.getCreatetime();
        if (this$createtime == null ? other$createtime != null : !this$createtime.equals(other$createtime)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();return this$content == null ? other$content == null : this$content.equals(other$content);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getTcid()
    {
        return this.tcid;
    }

    public Integer getCourseid()
    {
        return this.courseid;
    }

    public Integer getNodeid()
    {
        return this.nodeid;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getIsreply()
    {
        return this.isreply;
    }

    public Integer getReplycount()
    {
        return this.replycount;
    }

    public Integer getUserid()
    {
        return this.userid;
    }

    public Integer getCreatetime()
    {
        return this.createtime;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
